﻿using System.Collections.Generic;
using System.ServiceModel;
using DataTransferObject;

namespace RemoteFacade
{
    [ServiceContract (SessionMode = SessionMode.Required)]
    public interface ISignalementManagementRemoteService
    {
        [OperationContract(IsInitiating = true, IsTerminating = false, IsOneWay = true)]
        void OpenSession(string userName);

        [OperationContract(IsInitiating = false, IsTerminating = true, IsOneWay = true)]
        void CloseSession();

        [OperationContract(IsInitiating = false, IsTerminating = false, IsOneWay = true)]
        void CreateManySignalement(SignalementGroupDTO pannes);

        [OperationContract(IsInitiating = false, IsTerminating = false)]
        List<SignalementDTO> GetPendingSignalements();

        [OperationContract(IsInitiating = false, IsTerminating = false)]
        CreateSignalementDTO GetCreateSignalementDatas();
    }
}
